//
//  MYBaseViewController.h
//  hehe
//
//  Created by Robin on 2016/9/26.
//  Copyright © 2016年 HolyShit. All rights reserved.
//

#import <UIKit/UIKit.h>

typedef NS_ENUM(NSUInteger, MYNavPos) {
    MYNavPosLeft,
    MYNavPosRight,
};

@interface MYBaseViewController : UIViewController

@property (nonatomic, strong) UIButton *leftNavBtn;
@property (nonatomic, strong) UIButton *rightNavBtn;

- (void)showBarButton:(MYNavPos)position title:(NSString *)name fontColor:(UIColor *)color;
- (void)showBarButton:(MYNavPos)position imageName:(NSString *)imageName;
- (void)showBarButton:(MYNavPos)position button:(UIButton *)button;
- (void)leftButtonTouch;
- (void)rightButtonTouch;
- (void)setTitleView:(UIView *)titleView;

/**
 *  右边文字按钮，由于ui需要距离右边20像素，系统貌似是30像素，用这个调整
 */
- (void)rightTitleWithTitle:(NSString *)title;
- (void)rightTitleWithTitle:(NSString *)title color:(UIColor *)color;
- (void)rightTitleWithIconText:(NSString *)iconText color:(UIColor *)color;

- (void)leftTitleWithTitle:(NSString *)title;
- (void)leftTitleWithTitle:(NSString *)title color:(UIColor *)color;
- (void)leftTitleWithIconText:(NSString *)iconText color:(UIColor *)color;

@end
